﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMS.APP
{
    public class NewsLog
    {
        #region Fields
        /// <summary>
        /// 计数器
        /// </summary>
        private decimal id;
        /// <summary>
        /// 计数器
        /// </summary>
        public decimal Id
        {
            get { return id; }
            //set { id = value; }
        }
        /// <summary>
        /// 新闻Id
        /// </summary>
        private decimal newsId;
        /// <summary>
        /// 新闻Id
        /// </summary>
        public decimal NewsId
        {
            get { return newsId; }
            //set { newsId = value; }
        }
        /// <summary>
        /// 用户Id
        /// </summary>
        private string userId;
        /// <summary>
        /// 用户Id
        /// </summary>
        public string UserId
        {
            get { return userId; }
            //set { userId = value; }
        }
        /// <summary>
        /// 角色Id
        /// </summary>
        private string roleId;
        /// <summary>
        /// 角色Id
        /// </summary>
        public string RoleId
        {
            get { return roleId; }
            //set { roleId = value; }
        }
        /// <summary>
        /// 对象类型
        /// </summary>
        private ObjectType objectType;
        /// <summary>
        /// 对象类型
        /// </summary>
        public ObjectType ObjectType
        {
            get { return objectType; }
            //set { objectType = value; }
        }
        /// <summary>
        /// 内容
        /// </summary>
        private string contents;
        /// <summary>
        /// 内容
        /// </summary>
        public string Contents
        {
            get { return contents; }
            //set { contents = value; }
        }
        /// <summary>
        /// 更新时间
        /// </summary>
        private DateTime lastUpdateTime;
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime LastUpdateTime
        {
            get { return lastUpdateTime; }
            //set { lastUpdateTime = value; }
        }
        #endregion Fields

        /// <summary>
        /// 制作记录
        /// </summary>
        /// <param name="newsId">新闻Id</param>
        /// <param name="userName">用户Id</param>
        /// <param name="roleName">角色Id</param>
        /// <param name="objectType">对象类型</param>
        /// <param name="contents">记录内容</param>
        public static int MakeLog(ObjectType objectType, string contents)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读记录
        /// </summary>
        /// <param name="logId">记录Id</param>
        public static NewsLog ReadLog(decimal logId)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读记录
        /// </summary>
        /// <param name="howMany">数量</param>
        public static List<NewsLog> ReadLogs(int? howMany)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读记录
        /// </summary>
        /// <param name="newsId">新闻Id</param>
        /// <param name="howMany">数量</param>
        public static List<NewsLog> ReadLogsbyNews(decimal newsId, int? howMany)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读记录
        /// </summary>
        /// <param name="userId">用户Id</param>
        /// <param name="howMany">数量</param>
        public static List<NewsLog> ReadLogsbyUser(string userId, int? howMany)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读记录
        /// </summary>
        /// <param name="roleId">角色Id</param>
        /// <param name="howMany">数量</param>
        public static List<NewsLog> ReadLogsbyRole(string roleId, int? howMany)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读记录
        /// </summary>
        /// <param name="objectType">对象类型</param>
        /// <param name="howMany">数量</param>
        public static List<NewsLog> ReadLogsbyObjectType(ObjectType objectType, int? howMany)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读记录
        /// </summary>
        /// <param name="timeFrom">开始时间</param>
        /// <param name="timeTo">结束时间</param>
        /// <param name="howMany">数量</param>
        public static List<NewsLog> ReadLogsbyTime(DateTime? timeFrom, DateTime? timeTo, int? howMany)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 搜索记录
        /// </summary>
        /// <param name="newsId">新闻Id</param>
        /// <param name="userId">用户Id</param>
        /// <param name="roleId">角色Id</param>
        /// <param name="objectType">对象类型</param>
        /// <param name="contents">记录内容</param>
        /// <param name="timeFrom">开始时间</param>
        /// <param name="timeTo">结束时间</param>
        /// <param name="howMany">数量</param>
        public static List<NewsLog> SearchLogs(decimal? newsId, string userId, string roleId, ObjectType objectType, string contents, DateTime? timeFrom, DateTime? timeTo, int? howMany)
        {
            throw new System.NotImplementedException();
        }
    }
}
